﻿using log4net;
using ScaffoldSystem.Entities;
using ScaffoldSystem.Repositories.Abstract;
using ScaffoldSystem.Services.Abstract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScaffoldSystem.Services.Concrete
{
    public class SysDeptService : ISysDeptService
    {
        private static ILog log = LogManager.GetLogger(typeof(SysDeptService));

        private ISysDeptRepository sysDeptRepository;

        public SysDeptService(ISysDeptRepository sysDeptRepository)
        {
            this.sysDeptRepository = sysDeptRepository;
        }

        public SysDept FindDeptById(int deptId)
        {
            log.Info("FindDeptById收到参数:" + deptId);
            return sysDeptRepository.FindDeptById(deptId);
        }
    }
}
